package com.rao.springbootschoolshop.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 网站基础信息配置类
 */
@Component //定义成一个容器
@PropertySource(value = "classpath:site.properties")
public class SiteConfig {

    @Value("川工科校园二手交易平台")
    private String siteName;
    @Value("https://blog.csdn.net/qq_4272486")
    private String siteUrl;

    public String getSiteName() {
        return siteName;
    }

    public void setSiteName(String siteName) {
        this.siteName = siteName;
    }

    public String getSiteUrl() {
        return siteUrl;
    }

    public void setSiteUrl(String siteUrl) {
        this.siteUrl = siteUrl;
    }
}
